# 作者：SP
# 开发时间：2024/1/3 22:32
class User:
    def __init__(self,first_name,last_name,age,card_id,info):
        self.first = first_name
        self.last = last_name
        self.age = age
        self.card_id = card_id
        self.info = info
    def describe_user(self):
        print(f"这个人{self.age}岁，身份证信息为{self.card_id},个人信息是{self.info}")
    def greet_user(self):
        print(f"Hello,{self.first}{self.last}")
class Admin(User):
    def __init__(self,first_name,last_name,age,card_id,info,privileges):
        super().__init__(first_name,last_name,age,card_id,info)
        self.privileges = privileges
    def show_privileges(self):
        for privilege in self.privileges:
            print(privilege)
my_admin = Admin('jack','tom',18,1001,'info',privileges=['can add post','can delete post','can be user'])
print(my_admin.show_privileges())